<template>
	<view class="payResult">
		<!-- 图片 -->
		<view class="icon">
			<image class="img"></image>
		</view>
		<!-- 订单支付成功 -->
		<view class="info">
			订单支付成功
		</view>
		<view class="price">
			支付金额:{{ total }}元
		</view>
		<view class="btns">
			<view class="btn" @tap="goUser">
				个人中心
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				total: 0, // 总价
			};
		},
		onLoad(options) {
			this.total = uni.getStorageSync("total")
		},
		methods:{
			goUser(){
				uni.switchTab({
					url: "../../../user/user"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
@import "./index.scss"
</style>
